<div class="box">
    
  <div class="box-header">

    <div class="row">
        <div class="col-sm-5">
            <!-- <ob_link><a class="btn" href="{:url('add')}"><i class="fa fa-plus"></i> 新 增</a></ob_link>
            &nbsp;
            <ob_link><a class="btn export" url="{:url('export')}"><i class="fa fa-download"></i> 导 出</a></ob_link> -->
        </div>
        
        <div class="col-sm-7">
            <div class="box-tools search-form pull-right">
                <div class="input-group input-group-sm">
                    
                    <input type="text" name="search_data" style="width: 200px;" class="form-control pull-right" value="{:input('search_data')}" placeholder="支持昵称|手机号">

                    <div class="input-group-btn">
                      <button type="button" id="search"  url="{:url('index')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>
                    </div>

                </div>
           </div>
        </div>
    </div>
    
  </div>
    
    
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover table-striped">
      <thead>
      <tr>
          <th>头像</th>
          <th>昵称</th>
          <th>手机号</th>
          <th>VIP等级</th>
          <!-- <th>积分</th> -->
          <th>注册时间</th>
          <th>状态</th>
          <th>操作</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
                  <td>
                      <img class="img-circle" style="width: 30px; height: 30px;" src="{$vo.avatar|default='/static/images/default_avatar.png'}"/>
                  </td>
                  <td>{$vo.nickname}</td>
                  <td>{$vo.mobile|default='未绑定'}</td>
                  <td>{$vo.vip_level_text}</td>
                  <!-- <td>{$vo.points|default=0}</td> -->
                  <td>{$vo.create_time}</td>
                  <td>
                      {if condition="$vo.status eq 1"}
                          <span class="label label-success">正常</span>
                      {else/}
                          <span class="label label-danger">禁用</span>
                      {/if}
                  </td>
                  <td class="text-center">
                      <ob_link><a href="{:url('edit', array('id' => $vo['id']))}"><span class='badge bg-green'>编 辑</span></a></ob_link>
                      &nbsp;
                      <ob_link><a href="{:url('vip', array('id' => $vo['id']))}"><span class='badge bg-blue'>VIP管理</span></a></ob_link>
                      &nbsp;
                      <ob_link><a href="{:url('balanceList', array('id' => $vo['id']))}"><span class='badge bg-info'>余额流水</span></a></ob_link>
                      &nbsp;
                      <ob_link><a href="{:url('commissionList', array('id' => $vo['id']))}"><span class='badge bg-warning'>佣金来源</span></a></ob_link>
                      &nbsp;
                      <!-- <ob_link><a href="{:url('points', array('id' => $vo['id']))}"><span class='badge bg-orange'>积分管理</span></a></ob_link>
                      &nbsp;
                      <ob_link><a href="{:url('generateInviteCode', array('id' => $vo['id']))}"><span class='badge bg-purple'>邀请码</span></a></ob_link>
                      &nbsp; -->
                      <ob_link><a class="confirm ajax-get"  href="{:url('delete', array('id' => $vo['id']))}"><span class='badge bg-red'>删 除</span></a></ob_link>
                  </td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="8" class="text-center" valign="top">{:e(config_value('empty_list_describe', 'Oh! 暂时还没有数据~'))}</td></tr></tbody>
      {/notempty}
    </table>
  </div>

  <div class="box-footer clearfix text-center">
      {$list->render()|raw}
  </div>

</div>

<script>
    //导出功能
    $(".export").click(function(){
        
        window.location.href = searchFormUrl($(".export"));
    });
</script>
